<template>
  <div class="head">
    <div class="container">
      <div class="left">
        <img src="~/assets/images/logo1.png" style="cursor: pointer" @click="toHome" alt="" />
      </div>
      <div class="right">
        <div class="icon">
          <router-link to="/profile">
            <img src="~/assets/images/onself.png" alt="" />
            <span>个人中心</span>
          </router-link>
          <router-link to="/profile/message-management/my-message">
            <img src="~/assets/images/pronews.png" alt="" />
            <span>我的消息</span>
          </router-link>
          <router-link to="/cart">
            <img src="~/assets/images/cart.png" alt="" />
            <span>购物车</span>
          </router-link>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Head",
  data() {
    return {}
  },
  methods: {
    toHome() {
      this.$router.push({ path: "/home" })
    }
  }
}
</script>

<style lang="scss" scoped>
.head .left {
  padding-top: 33px;
  padding-right: 229px;
  padding-bottom: 33px;
  box-sizing: border-box;
}
.head .left img {
  width: 259px;
}
.head .search {
  float: left;
  padding-top: 33px;
  box-sizing: border-box;
}
.search .sea-top a {
  padding: 10px 20px;
  border-radius: 14px;
  border: 1px solid #f0f0f0;
  margin-left: 6px;
}
.search .sea-top a:nth-child(1) {
  margin-left: 0;
}
.search .sea-top a.active {
  color: #fff;
  background: #e38b2e;
  border: 1px solid #e38b2e;
}

.sea-box {
  font-size: 16px;
  margin-top: 15px;
  width: 413px;
  height: 45px;
  line-height: 45px;
  border-radius: 19px;
  border: 2px solid #f0f0f0;
  padding-left: 11px;
  position: relative;
}
.sea-box img {
  position: absolute;
  top: 15px;
  left: 16px;
  width: 19px;
  height: 19px;
}
.sea-box .sear-input {
  height: 37px;
  line-height: 37px;
  width: 352px;
  padding-left: 36px;
}
.sea-box .sear-btn {
  position: absolute;
  top: -2px;
  right: -1px;
  width: 84px;
  height: 45px;
  text-align: center;
  line-height: 45px;
  color: #fff;
  background: #e38b2e;
  border-top-right-radius: 19px;
  border-bottom-right-radius: 19px;
}
.sea-bottom {
  margin-top: 9px;
  color: #e38b2e;
}
.sea-bottom a {
  margin-left: 17px;
}
.head .right {
  padding-top: 50px;
  display: flex;
}
.into {
  width: 252px;
  height: 50px;
  font-size: 20px;
  font-weight: bold;
  line-height: 50px;
  color: #fff;
  background: #41addc;
  border-radius: 24.72px;
  position: relative;
  margin-bottom: 25px;
}
.into a {
  display: block;
  width: 100%;
  padding-left: 40px;
}
.into .into-icon {
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 50px;
  background: #e38b2e;
  border-top-right-radius: 24.72px;
  border-bottom-right-radius: 24.72px;
}
.into .into-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -15px;
  transform: translateY(-50%);
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background-color: #e38b2e;
}
.into .into-icon img {
  width: 20px;
  height: 23px;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.icon {
  display: flex;
}
.icon a {
  width: 80px;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  align-items: center;
}
.icon a.active {
  color: #e38b2e;
}
.icon a:hover {
  color: #e38b2e;
}
.icon a img {
  width: 22px;
  height: 22px;
  margin-bottom: 9px;
}
@media only screen and (max-width: 1200px) {
  .head .left {
    padding-right: 120px;
  }
}
</style>
